<?php include TMPL_PATH.'public/header.phtml';?>
<div class="subnav">
    <div class="content-menu ib-a blue line-x">
        <a href='javascript:;' class="on"><em>退换货申请列表</em></a>
    </div>
</div>
<div class="bk"></div>
<div class="pad_10">
<div class="table-list">
    <table width="100%" cellspacing="0" >
        <thead>
            <tr>
            <th width="150">服务类型</th>
            <th align='left' width="150">联系人</th>
            <th align='left' width="150">订单号</th>
            <th align='left' width="300">商品名称</th>
            <th align='center' width="150">申请时间</th>
            <th align='center' width="80">状态</th>
						<th>管理操作</th>
            </tr>
        </thead>
    <tbody>
    <?php
   	if(isset($purchaseList) && $purchaseList):
   		foreach ($purchaseList as $v):
   ?>
			<tr>
				<td align='center'><?php echo OrderModel::$purchaseType[$v['purchase_type']];?></td>
				<td><?php echo $v['contact_name']?></td>
					<td><?php echo $v['order_sn']?></td>
					<td><?php echo $v['product_name'];?></td>
					<td align='center'><?php echo date('Y-m-d H:i:s', $v['add_time']);?></td>
					<td align='center'><?php echo OrderModel::$purchaseStatus[$v['status']];?></td>
					<td align='center'> 
					<a href="<?php echo U('order/order_purchase_edit', 'pur_id='.$v['id']);?>">查看</a>
					</td>
				</tr>
	<?php 
		endforeach;
		endif;
	?>
   </tbody>
    </table>
<div id="pages"><?php echo $pageShow;?></div>
</div>
</div>
</body>
</html>